package com.game.roomlist
{
	public class RoomListItem
	{
		
		public var roomid:int;
		public var name:String;
		public var _psd:String;
		public var mode:String;
		public var _modeIdx:int;
		public var number:String;
		public var map:String;
		public var _mapIdx:int;
		public var status:int;
		public var minlv:int;
		public var maxlv:int;
		public var lvlbl:String;
		
		public var image:Object;
		public var hasPassword:Boolean=false;
		public function RoomListItem()
		{
		}
		public function set mapIdx(value:int):void
	    {
            _mapIdx=value;
            if(value==0)this.map="空地";
            if(value==1)this.map="克里夫村";
            if(value==2)this.map="冰原";
    	}
		public function set modeIdx(value:int):void
	    {
            _modeIdx=value;
            if(value==0)this.mode="自由";
            if(value==1)this.mode="组队";
            
    	}
		public function set psd(value:String):void
	    {
            _psd=value;
            if(_psd && _psd.length>0)this.hasPassword=true;
            else hasPassword=false;
            
    	}
	}
}